using System;
using System.Collections.Generic;
using System.Text;

namespace Update
{
    public class Updater
    {
        private string m_updateFilePath = null;
        private DateTime m_updateFileDate = null;
        
        private DateTime m_lastUpdateDate = null;
        private string m_localFilePath = null;
        private string m_applicationRootPath = null;

        #region Constructors
        public Updater(string updateFilePath)
        {
            m_updateFilePath = updateFilePath;
        }
        public Updater(string updateFilePath, string applicationPath)
        {
            m_updateFilePath = updateFilePath;
            m_applicationRootPath = applicationPath;
        }
        public Updater(string updateFilePath, string applicationPath, string localFilePath)
        {
            m_updateFilePath = updateFilePath;
            m_applicationRootPath = applicationPath;
            m_localFilePath = localFilePath;
        }
        #endregion

        #region Properties
        public string UpdateFilePath
        {
            get { return m_updateFilePath; }
        }
        public DateTime UpdateFileDate
        {
            get { return m_updateFileDate; }
        }
        public DateTime LastUpdateDate
        {
            get { return m_lastUpdateDate; }
        }
        public String LocalFilePath
        {
            get { return m_localFilePath; }
            set { m_localFilePath = value; }
        }
        public String ApplicationRootPath
        {
            get { return m_applicationRootPath; }
            set { m_applicationRootPath = value; }
        }
        #endregion
    }
}
